package cn.sunshine.handler;

import cn.sunshine.domain.User;
import com.alibaba.csp.sentinel.slots.block.BlockException;

/*
* @Title:
* @Description: User降级类
* @Author: Mr.Jiang
* @Version: 1.0
* @Date:  2022/8/2 20:43
* @Parameters:
* @Return
*/
public class UserFallBackHandler {
    public static User exceptionHandler(Long id , BlockException ex) {
        return User.builder().id(-1L).intro("随便降嘛").name("流控").build();
    }
}
